package com.wk1un2.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wk1un2.entity.ActivitySess;
import com.wk1un2.mapper.ActivitySessMapper;
import com.wk1un2.service.ActivitySessService;

/**
 * 业务接口的实现类
 * 
 * @author Administrator
 *
 */
@Service // 扫描
public class ActivitySessServiceImpl implements ActivitySessService {

	@Autowired
	private ActivitySessMapper ActivitySessMapper;// 自动注入mapper

	@Override
	public List<ActivitySess> getAll(int page, int limit, String as_name) {
		// TODO Auto-generated method stub
		return ActivitySessMapper.getAll(page, limit,  as_name);
	}

	@Override
	public Integer count() {
		// TODO Auto-generated method stub
		return ActivitySessMapper.count();
	}

	@Override
	public Integer add(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ActivitySessMapper.add(map);
	}

	@Override
	public Integer update(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return ActivitySessMapper.update(map);
	}

	@Override
	public Integer delete(int as_id) {
		// TODO Auto-generated method stub
		return ActivitySessMapper.delete(as_id);
	}

}
